【Server Core Audio Client On Win】【WIP】feat: add server core audio client for windows #134
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
English Version
This is a flawed PR. I feel that it's quite challenging for me to tackle the last problem on my own, so I've opened this PR to ask for help. The current code can be compiled successfully. The usage is as follows:
I've spent approximately three weeks of my free time on this. During the implementation process, I've resolved the following issues:
pAudioClient->SetEventHandle(hEvent)
event, I addressed the problem where CPU usage during playback reached up to12%
.pAudioClient->IsFormatSupported
method to achieve comparable playback.WAVEFORMATEX
format while others support theWAVEFORMATEXTENSIBLE
format.In the end, there's still one problem remaining:
The efforts I've made are as follows:
中文版本(Chinese Version)
这是1个有缺陷的PR,最后的一个问题我感觉只凭我自己难以处理了,所以才开启这个PR,以寻求帮助。当前代码是完全可以编译的,使用方式如下:
我大概花了3周的业余时间,在实现的过程中解决了如下问题:
pAudioClient->SetEventHandle(hEvent)
事件,解决播放过程占用 CPU 高达12%
的问题。pAudioClient->IsFormatSupported
。WAVEFORMATEX
格式,而有的是WAVEFORMATEXTENSIBLE
的问题。最终剩余下1个问题:
我做出的努力如下: